# 反转字符串, 利用slice切片操作
# def reverse(text):
#     return text[::-1]
#
# # 是否是回文字符串
# def is_palindrome(text):
#     return text == reverse(text)
#
#
# something = input("Enter text: ")
# if is_palindrome(something):
#     print("Yes, it is a palindrome")
# else:
#     print("No, it is not a palindrome")


str = 'drzhang'

print(str[0::])
print(str[::-1])
